﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace SmartWarehouse
{
    namespace Common
    {

        public enum SwMessageType
        { 
            None = 0,
            Ok = 1,
            Error = 2,
            Warnning = 3,
            Infomation = 4
        }

        /// <summary>
        /// Summary description for SwMessage
        /// </summary>
        public class SwMessage
        {
            private SwMessageType _messageType;
            private string _messageText;

            public SwMessageType MessageType
            {
                get
                {
                    return this._messageType;
                }
                set
                {
                    this._messageType = value;
                }
            }
            public string MessageText
            {
                get
                {
                    return this._messageText;
                }
                set
                {
                    this._messageText = value;
                }
            }
            public SwMessage()
                : this(SwMessageType.None, string.Empty)
            {

            }
            public SwMessage(SwMessageType messageType,string messageText)
            {
                this.MessageType = messageType;
                this.MessageText = messageText;
            }
        }
    }
}